<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	request.setAttribute("basePath", basePath);
%>	
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="../../common/common.jspf"%>
<%-- <script type="text/javascript" src="${ctx}/js/goods/goodsClass/addGoodsClass.js"></script>
 --%>
<script type="text/javascript">

$(function(){
	var url = rootPath + '/goodsClass/initTree';
	
	// 异步加载所有菜单列表
	$("#formSubmit").validate({
		submitHandler : function(form) {// 必须写在验证前面，否则无法ajax提交
			ly.ajaxSubmit(form,{//验证新增是否成功
				type : "post",
				//dataType : "json",
				success : function(data, status) {
					if (data == "success") {
						parent.layer.msg("操作成功！");
				        close();
				        parent.grid.loadData();
 						//$("#formSubmit")[0].reset();
					} else {
						layer.msg("数据操作失败！");
						layer.alert('操作失败！', 3);
					}
				}
			});
		},
		rules : {
			"replyContent" : {
				required : true
			}
		},
		messages : {
			"replyContent" : {
				required : "必填项！"
			}
			
		},
		errorPlacement : function(error, element) {// 自定义提示错误位置
			$(".l_err").css('display', 'block');
			// element.css('border','3px solid #FFCCCC');
			$(".l_err").html(error.html());
		},
		success : function(label) {// 验证通过后
			$(".l_err").css('display', 'none');
		}
	});

	
});

</script>

<style type="text/css">
#but button {
	margin-bottom: 5px;
	margin-right: 5px;
}
.col-sm-3 {
	width: 20%;
	float: left;
}

.col-sm-9 {
	width: 80%;
	float: left;
}

label[class^="btn btn-default"] {
	margin-top: -4px;
}
</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="formSubmit" name="form" class="form-horizontal" method="post" 
		action="${pageContext.request.contextPath}/messageReply/editMessageReply">
		<input type="hidden" name="consultId" value="${consultComment.id}">
		<section class="panel panel-default">
			<div class="panel-body">
				<div class="form-group">
					<label class="col-sm-3 control-label">商品名称：</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkacc"
							placeholder="请输入商品分类名称" name="consultComment.goodsName" disabled="disabled" value="${consultComment.goodsName}" >
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">咨询内容：</label>
					<div class="col-sm-9">
						<textarea type="text" class="form-control checkacc"
							placeholder="咨询内容" name="consultComment.consultContent" disabled="disabled" value="">${consultComment.consultContent }</textarea>
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">咨询人：</label>
					<div class="col-sm-9">
						<input type="text" class="form-control checkacc"
							placeholder="咨询人" name="consultComment.creater" disabled="disabled" value="${consultComment.creater }" >
					</div>
				</div>
				<div class="line line-dashed line-lg pull-in"></div>
				<div class="form-group">
					<label class="col-sm-3 control-label">回复信息：</label>
					<div class="col-sm-9">
						<textarea type="text" class="form-control checkacc"
							placeholder="回复信息" name="replyContent"  value="">${consultComment.replyContent}</textarea>
					</div>
				</div>
				
			</div>
			<footer class="panel-footer text-right bg-light lter">
			<button type="submit" class="btn btn-success btn-s-xs">回复</button>
			</footer> 
		</section>
	</form>
</body>
</html>